﻿using QFramework;
using Sirenix.OdinInspector;
using UnityEngine;


public class AddSpeedFood : Food,IController
{
    public float addSpeed;
    public IArchitecture GetArchitecture() => MainFramework.Interface;
    public override void DoAction(Snake snake)
    {
        snake.AddSpeed(addSpeed);
        var audioSystem = this.GetSystem<AudioSystem>();
        audioSystem.PlaySoundEffect("Sound/effects/stabbing");
        Destroy(this.gameObject);
    }
}
